package com.farm.dao;
import com.farm.opjo.Crops;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
@Repository
public interface CropsMapper extends Mapper<Crops> {
    //根据名字查询农作物
    @Select ( "select * from t_crops where name=#{name}" )
    Crops findByName(String name);
}
